//
//  YKUMSDK+APM.m
//  YKUMSDK
//
//  Created by edward on 2022/9/19.
//

#import "YKUMSDK+APM.h"
#import <UMAPM/UMAPMConfig.h>
#import <UMAPM/UMCrashConfigure.h>

@implementation YKUMSDK (APM)

//return字符串不能大于256字节，大于部分将被截取
+ (void)setCrashCBBlock:(NSString *_Nullable(^ _Nullable)(void))cbBlock
{
    if (cbBlock) {
        [UMCrashConfigure setCrashCBBlock:cbBlock];
    }
}


+(void)reportExceptionWithName:(NSString* _Nonnull)name
                       reason:(NSString* _Nonnull)reason
                   stackTrace:(NSArray* _Nonnull)stackTrace
{
    [UMCrashConfigure reportExceptionWithName:name reason:reason stackTrace:stackTrace];
}
@end
